Skip to content

perf: skip HTML sanitization for plain RSS metadata - #36

Merged
sarthakagrawal927 merged 1 commit into
mainfrom
agent/optimize-rss-parsing
Aug 10, 2026
Merged

perf: skip HTML sanitization for plain RSS metadata#36
sarthakagrawal927 merged 1 commit into
mainfrom
agent/optimize-rss-parsing

Conversation

@sarthakagrawal927

Copy link
Copy Markdown
Member

What

  • add a lightweight text normalizer for plain feed and OPML metadata
  • retain full HTML sanitization whenever markup is present
  • add correctness coverage for marked-up metadata and a 200-entry performance guard

Why

CodeVetter measured RSS parsing at 8.767 ms/op. Source profiles disagreed between entry normalization and HTML cleaning, so the change is deliberately narrow and preserves the markup path.

Evidence boundary

CodeVetter did not rank this as a confirmed bottleneck because independent profiles disagreed. This draft is a bounded experiment with correctness coverage, not a paired speedup claim.

Checks

  • 7 focused Vitest tests passed
  • TypeScript typecheck
  • Biome on changed files
  • repository pre-push lint completed with pre-existing warnings only

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
reader 3b6cd32 Aug 09 2026, 10:58 PM

@sarthakagrawal927
sarthakagrawal927 marked this pull request as ready for review August 10, 2026 07:04
@sarthakagrawal927
sarthakagrawal927 merged commit 2773ae5 into main Aug 10, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant